<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <!-- 正则表达式验证邮箱 -->
    <!-- var reg=^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$
    /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/; -->

<script>
 var reg= /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/;
 var email="175@163.cn";
 console.log(reg.test(email));
</script>
</body>
</html>